package com.demolist.demo.list.v2;

import java.util.Arrays;

public class Demolist {
    public static void main(String[] args) {
        String value = "555555";
        String value2 = "11111";
        String value6 = "66666";
        String value7 = "77777";
        String value8 = "88888";
        String value9 = "222222";
        String[] array = new String[]{"11111","222222","33333","4444444"};

        XinList list = new XinList();
        list.add(array,value);
        list.add(list.add(array,value),value6);
        list.add(list.add(list.add(array,value),value6),value7);
        list.add(list.add(list.add(list.add(array,value),value6),value7),value8);
        System.out.println(list.toString());


        String[] rearr =list.remove(array,value2);
        String[] rearr2 =list.remove(rearr,value9);
        System.out.println(Arrays.toString(rearr2));
    }
}
